package com.hzjy.manage.vo;

import com.hzjy.common.annotation.Excel;
import com.hzjy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * banner图对象 hzjy_banner
 *
 * @author hzjy
 * @date 2020-08-18
 */
public class HzjyBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 【1：首页banner，其他待定】 */
    @Excel(name = "【1：首页banner，其他待定】")
    private Integer bannerType;

    /** 【0：不展示，1展示】 */
    @Excel(name = "【0：不展示，1展示】")
    private Integer state;

    /** 展示顺序 */
    @Excel(name = "展示顺序")
    private Integer bannerOrder;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String image;

    /** 跳转地址 */
    @Excel(name = "图片地址")
    private String url;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBannerType(Integer bannerType)
    {
        this.bannerType = bannerType;
    }

    public Integer getBannerType()
    {
        return bannerType;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public Integer getBannerOrder() {
        return bannerOrder;
    }

    public void setBannerOrder(Integer bannerOrder) {
        this.bannerOrder = bannerOrder;
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bannerType", getBannerType())
                .append("state", getState())
                .append("bannerOrder", getBannerOrder())
                .append("image", getImage())
                .append("createTime", getCreateTime())
                .append("url",getUrl())
                .toString();
    }
}
